package com.mongodb.mongodbboot.service.impl;

import com.mongodb.mongodbboot.model.TableStrategy;
import com.mongodb.mongodbboot.service.ConfigQueryService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
@Transactional(rollbackFor = Exception.class)
public class ConfigQueryServiceImpl implements ConfigQueryService {


    @Override
    public Date getShardingChangeTime() {
        String keyPre = "parm_value";

        return new Date();
    }

    @Override
    public List<TableStrategy> getTableStrategy() {
        List<TableStrategy> list = new ArrayList<>();
      return list;
    }

    @Override
    public List<Map<String, Object>> getCacheConfig() {

        List<Map<String, Object>> map =new ArrayList<>();
        return map;
    }

}
